<?php
/**
 * Created by PhpStorm.
 * User: Pack
 * Date: 2017-12-30
 * Time: 21:14
 */
//
//$url = 'https://ssl.e9448.com/score/member/v1/authorize?clientId=hnmall&responseType=code&redirectUrl=http%3A%2F%2Fvipshop%2Fuser.php%3Fact%3Dact_login&scope=basic&state=http%3A%2F%2Fvipshop%2F&skin=hnmall&startPage=login&tag=&channel=web';
$baseurl = 'http://localhost/03product/sso/service/authorize.php?';
$url = [
    'clientId' => 'news',
    'redirectUrl' => 'http://localhost/03product/sso/service/ssologin.php',
    'responseType' => 'code',
];
$redirect = $baseurl.http_build_query( $url);
header("Location:{$redirect}");
